/**
 * 
 */
package br.com.skynix.tcmc.model.oportunidade;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.ForeignKey;

/**
 * @author davi
 * 
 */
@Entity
@Table(name = "tb_ligacao")
@Inheritance(strategy = InheritanceType.JOINED)
@PrimaryKeyJoinColumn(name = "id")
@ForeignKey(name = "FK001_ligacao")
public class Ligacao extends Atividade {
	@NotNull
	@Column(name = "flag_gera_agendamento", nullable = false)
	private Boolean flagGeraAgendamento;

	/**
	 * @return the flagGeraAgendamento
	 */
	public Boolean getFlagGeraAgendamento() {
		return flagGeraAgendamento;
	}

	/**
	 * @param flagGeraAgendamento the flagGeraAgendamento to set
	 */
	public void setFlagGeraAgendamento(Boolean flagGeraAgendamento) {
		this.flagGeraAgendamento = flagGeraAgendamento;
	}
}
